package com.ss.user.dao;

import java.util.List;

import com.ss.user.pojo.Authority;
/**
 * 功能管理dao
 * @author zhuchao
 *
 */
public interface AuthorityDao {
	/**
	 * 新增功能
	 * @param authority
	 * @author zhuchao
	 */
	public void addAuthority(Authority authority);
	/**
	 * 更新功能
	 * @param authority
	 * @author zhuchao
	 */
	public void updateAuthority(Authority authority);
	/**
	 * 查询功能
	 * @param authority
	 * @return
	 *  @author zhuchao
	 */
	public Authority queryAuthority(Authority authority);
	/**
	 * 查询功能，根据ID
	 * @param id
	 * @return
	 * @author zhuchao
	 */
	public Authority queryAuthorityByID(String id);
	/**
	 * 查询角色已有功能
	 * @param id
	 * @return
	 * @author zhuchao
	 */
	public List<Authority> queryAuthorityYes(String id);
	/**
	 * 查询角色没有功能
	 * @param id
	 * @return
	 * @author zhuchao
	 */
	public List<Authority> queryAuthorityNo(String id);
}
